import Http from '@/util/request'

export const muscleApi = {
  getMuscleList: async (params?: object) => {
    return Http.request({
      url: '/admin/muscle/muscle/getMuscleList',
      method: 'get',
      params,
    })
  },

  muscleAdd: async (data?: object) => {
    return Http.request({
      url: '/admin/muscle/muscle/muscleAdd',
      method: 'post',
      data,
    })
  },

  muscleUpdate: async (data?: object) => {
    return Http.request({
      url: '/admin/muscle/muscleUpdate',
      method: 'post',
      data,
    })
  },

  muscleDelete: async (data?: object) => {
    console.log('data',data)
    return Http.request({
      url: '/admin/muscle/muscle/muscleDelete',
      method: 'post',
      data,
    })
  },
}

export const exerciseApi = {
  getExerciseList: async (params?: object) => {
    return Http.request({
      url: '/admin/exercise/exercise/getExerciseList',
      method: 'get',
      params,
    })
  },
}
